<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../share/taglib.jsp" %>
<%@ include file="../share/isReadOnly.inc" %>
<script type="text/javascript">
function save() {
   var bForm = document.getElementById('buildingForm');
   if (tt.validate()) {
      bForm.submit();
   }
}
function goEdit(type) {
   var form = document.getElementById('buildingForm');
   form.type.value = type;
   form.method.value = 'editUI';
   form.submit();
}
</script>
<table width="98%">
   <tr>
      <td width="80%">
      <c:if test="${buildingForm.type eq 'Base'}">
      &nbsp;&nbsp;<font color="#000000">楼盘信息</font>&nbsp;&nbsp;
      </c:if>
      <c:if test="${buildingForm.type ne 'Base'}">
      &nbsp;&nbsp;<a href="javascript:goEdit('Base');"><font color="#000000">楼盘信息</font></a>&nbsp;&nbsp;
      </c:if>
      <c:if test="${buildingForm.method eq 'edit'}">
	      <c:if test="${buildingForm.type eq 'Pro'}">
	      |&nbsp;&nbsp;<font color="#000000">物业信息</font>&nbsp;&nbsp;
	      </c:if>
	      <c:if test="${buildingForm.type ne 'Pro'}">
	      |&nbsp;&nbsp;<a href="javascript:goEdit('Pro');"><font color="#000000">物业信息</font></a>&nbsp;&nbsp;
	      </c:if>
	      
	      <c:if test="${buildingForm.type eq 'Sale'}">
	      |&nbsp;&nbsp;<font color="#000000">售楼信息</font>&nbsp;&nbsp;
	      </c:if>
	      <c:if test="${buildingForm.type ne 'Sale'}">
	      |&nbsp;&nbsp;<a href="javascript:goEdit('Sale');"><font color="#000000">售楼信息</font></a>&nbsp;&nbsp;
	      </c:if>
	      
	      <c:if test="${buildingForm.type eq 'Con'}">
	      |&nbsp;&nbsp;<font color="#000000">建筑信息</font>&nbsp;&nbsp;
	      </c:if>
	      <c:if test="${buildingForm.type ne 'Con'}">
	      |&nbsp;&nbsp;<a href="javascript:goEdit('Con');"><font color="#000000">建筑信息</font></a>&nbsp;&nbsp;
	      </c:if>
	      
	      <c:if test="${buildingForm.type eq 'Sur'}">
	      |&nbsp;&nbsp;<font color="#000000">周边信息</font>&nbsp;&nbsp;
	      </c:if>
	      <c:if test="${buildingForm.type ne 'Sur'}">
	      |&nbsp;&nbsp;<a href="javascript:goEdit('Sur');"><font color="#000000">周边信息</font></a>&nbsp;&nbsp;
	      </c:if>
	      
	      |&nbsp;&nbsp;<a href="/cms/uploadFile.do?method=listB&objType=building&objId=${buildingForm.buildingId}"><font color="#000000">图片列表</font></a>&nbsp;&nbsp;
      </c:if>
      </td>
      <td width="20%" align="right">
      <a href="javascript:<%=isReadOnly?"void(0)":"save()"%>;">保&nbsp;存</a>
      </td>
   </tr>
</table>